package sanrenxing.analysis.domain;

/**
 * 功能:难易程度分析表的实体类
 * 编写者：
 * 日期：2020
 * 版本：1.0
 */
public class Analysis {
    //序号
    private int analysisId;
    //试题编号
    private int subjectId;
    //班级编号
    private int classId;
    //试卷编号
    private int paperId;
    //正确率
    private double accRate;
    private int rightNum;

    /**
     * 不带参的构造方法
     */
    public Analysis() {
    }

    /**
     * 带参构造方法
     * @param analysisId 序号
     * @param subjectId 试题编号
     * @param classId 班级编号
     * @param paperId 试卷编号
     * @param accRate 正确率
     */
    public Analysis(int analysisId, int subjectId, int classId, int paperId, double accRate,int rightNum) {
        this.analysisId = analysisId;
        this.subjectId = subjectId;
        this.classId = classId;
        this.paperId = paperId;
        this.accRate = accRate;
        this.rightNum=rightNum;
    }

    /**
     * 缺少主键的构造方法
     * @param subjectId 试题编号
     * @param classId 班级编号
     * @param paperId 试卷编号
     * @param accRate 正确率
     */
    public Analysis(int subjectId, int classId, int paperId, double accRate,int rightNum) {
        this.subjectId = subjectId;
        this.classId = classId;
        this.paperId = paperId;
        this.accRate = accRate;
        this.rightNum=rightNum;
    }

    //自动生成的setter/getter

    public int getAnalysisId() {
        return analysisId;
    }

    public void setAnalysisId(int analysisId) {
        this.analysisId = analysisId;
    }

    public int getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getPaperId() {
        return paperId;
    }

    public void setPaperId(int paperId) {
        this.paperId = paperId;
    }

    public double getAccRate() {
        return accRate;
    }

    public void setAccRate(double accRate) {
        this.accRate = accRate;
    }

    public int getRightNum() {
        return rightNum;
    }

    public void setRightNum(int rightNum) {
        this.rightNum = rightNum;
    }
}
